package infostroy.bookagolf.common.helpers;

import java.util.List;

/**
 * Created by Andrew on 16.02.14.
 */
public class ValidationHelper {

    public static boolean isNullOrEmpty(@SuppressWarnings("rawtypes") List list) {
        if (list == null || list.isEmpty()) {
            return true;
        } else {
            return false;
        }
    }

    public static boolean isNullOrEmpty(Object [] array){
        if(array == null || array.length==0){
            return true;
        } else {
            return false;
        }

    }
    
	public static boolean isNullOrEmpty(Object object) {
		return object == null;
	}

}

